home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / TPP1SRC.ZIP / WVR.INC < prev   
Encoding:
Text File  |  1996-04-30  |  733 b   |  40 lines

  1. ;
  2. ; TASM macros, synchro VGA vertical retrace & rastertime shower.
  3. ;
  4.  
  5.  
  6. WVR macro
  7.   local VRTest1, VRTest2
  8.            mov dx,03dah
  9. VRTest1:   in al,dx
  10.            test al,08h
  11.            jne VRTest1
  12. VRTest2:   in al,dx
  13.            test al,08h
  14.            je VRTest2
  15. endm
  16.  
  17. PWVR macro
  18.   local VRTest1, VRTest2
  19.            push ax dx
  20.            mov dx,03dah
  21. VRTest1:   in al,dx
  22.            test al,08h
  23.            jne VRTest1
  24. VRTest2:   in al,dx
  25.            test al,08h
  26.            je VRTest2
  27.            pop dx ax
  28. endm
  29.  
  30. RasterTime macro Color
  31.          mov dx,3c8h
  32.          xor al,al
  33.          out dx,al
  34.          mov dx,3c9h
  35.          mov al,Color
  36.          out dx,al
  37.          out dx,al
  38.          out dx,al
  39. endm
  40.